/* 
 * File:
 * 
 * Author: henrya
 *
 * Created on June 26, 2009, 6:54 PM
 */

#ifndef _ROUTINGTABLE_H
#define	_ROUTINGTABLE_H

#include <vector>
using std::vector;

class RoutingTable {
public:
    RoutingTable(int nodeId, vector<int>& allNodes);
    virtual ~RoutingTable();
    void update(RoutingTable& table);
    int getId();
    void printRT();
private:
    unsigned int indexOf(int nodeNumber);
private:
    int nodeId;
    vector<int> allNodes;
    int* distance;
    int* nextNode;
};

#endif	/* _ROUTINGTABLE_H */

